package com.feixiang.springbootinit.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.feixiang.springbootinit.model.entity.wechat.QwMessage;
import com.feixiang.springbootinit.service.QwMessageService;
import com.feixiang.springbootinit.mapper.QwMessageMapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 20144
* @description 针对表【MESSAGE(基础消息表)】的数据库操作Service实现
* @createDate 2025-07-16 14:06:05
*/
@Service
public class QwMessageServiceImpl extends ServiceImpl<QwMessageMapper, QwMessage>
    implements QwMessageService {
    /**
     * 获取SQL_SERVER数据库   seq当前最大值 当前最大值
     *
     * @return
     */
    @Override
    public Long getMaxSeq() {
        return baseMapper.getMaxSeq();
    }

    @Override
    public Long getMaxSeqWithLock() {
        return baseMapper.getMaxSeqWithLock();
    }

    @Override
    public int insertBatch(List<QwMessage> qwMessageList) {
        return baseMapper.insertBatch(qwMessageList);
    }


}




